/**
 * 通用API
 */
import Quality from '@/api/quality'
import { qualityApiUrl, projectApiUrl } from '@/api/config.js'
const SUB_SYSTEM = qualityApiUrl + '/universal'
// const SUB_SYSTEM = '/mock/27/universal' // mock
const projectType = new Quality(SUB_SYSTEM, '/project-type', true) // 工程类别
const subItem = new Quality(SUB_SYSTEM, '/project-type/sub-item', true) // 工程类别-分部分项
const subItemBind = new Quality(SUB_SYSTEM, '/project-type/sub-item/bind', true) // 工程类别-分部分项
const projectSubItem = new Quality(qualityApiUrl, '/quality/constructiontype/sub-item', true) // 工程类别-项目分部分项
const subItemSource = new Quality(SUB_SYSTEM, '/project-type/sub-item/source', true) // 项目-分部分项
const manage = new Quality(SUB_SYSTEM, '/duty-area/manage', true) // 分包商责任区域管理
const set = new Quality(SUB_SYSTEM, '/duty-area/set', true) // 分包商责任区域设置
const inherit = new Quality(SUB_SYSTEM, '/duty-area/inherit') // 分包商责任区域继承
const setImage = new Quality(SUB_SYSTEM, '/duty-area/set/image') // 分包商责任区域设置
const setSubItem = new Quality(SUB_SYSTEM, '/duty-area/set/sub-item', true) // 获取项目id获取检查区域
export {
  projectType,
  subItem,
  manage,
  set,
  inherit,
  setImage,
  setSubItem,
  projectSubItem,
  subItemSource,
  subItemBind
}